package com.fortune.vo;

import lombok.Data;

import java.io.Serializable;

@Data
public class PageResult<T> implements Serializable {
    private int total;
    private int currentPage;
    private int currentPageSize;
    private T rows;

    public PageResult(int total, T rows,int currentPage,int currentPageSize) {
        this.total = total;
        this.currentPage = currentPage;
        this.currentPageSize = currentPageSize;
        this.rows = rows;
    }
    public PageResult(int total, T rows) {
        this.total = total;
        this.rows = rows;
    }
}
